<%@page import="model.AccountImp"%>
<%@page import="model.entity.Account"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="tab_container">
        <div id="tab2" class="tab_content" style="display: block;">
           <h2>Edit Account</h2>
           
           	<p>
                 Enter information to edit account.
         	</p>
     <%
    
    AccountImp acim = new AccountImp();
    String useredit = (String) request.getAttribute("username");
    Account acc = acim.DetailAcc(useredit);
 
%>  
                <form action="<c:url value="<%= "/admin/account/edit/" + acc.getUsername() %>"/>" method="POST" name="frmedit" >
    
              <p>
                  <label>Username:  </label><br/>
                  <input type="text" readonly="true" class="text small" name="username" value="<%= acc.getUsername() %>"> 
              </p>
              
              <p>
                  <label>password:  </label><br/>
                  <input type="password" class="text small" name="password" value="<%= acc.getPassword() %>" > 
                  
              </p>
              <p>
                  <label >firstname: </label><br/>
                  <input type="text" class="text small" name="firstname" value="<%= acc.getFirstname() %>"> 
                  
              </p>
              <p>
                  <label >lastname:  </label><br/>
                  <input type="text" class="text small" name="lastname" value="<%= acc.getLastname() %>"> 
                  
              </p>
              <p>
                  <label >country      </label><br/>
                  <input type="text" class="text small" name="country" value="<%= acc.getCountry() %>"> 
                  
              </p>
              <p>
                  <label >city:      </label><br/>
                  <input type="text" class="text small" name="city" value="<%= acc.getCity() %>"> 
                  
              </p>
              <p>
                  <label >state province:      </label><br/>
                  <input type="text" class="text small" name="state_province" value="<%= acc.getState_province() %>"> 
                  
              </p>
              <p>
                  <label >street      </label><br/>
                  <input type="text" class="text small" name="street" value="<%= acc.getStreet() %>"> 
                  
              </p>
              <p>
                  <label>homephone:  </label><br/>
                  <input type="text" class="text small" name="homephone" value="<%= acc.getHomephone() %>"> 
                 
              </p>
              <p>
                  <label>mobile:    </label><br/>
                  <input type="text" class="text small" name="mobile" value="<%= acc.getMobile() %>"> 
                 
              </p>
              <p>
                  <label >typecard:      </label><br/>
                  <input type="text" class="text small" name="typecard" value="<%= acc.getTypecard() %>"> 
                  
              </p>
              <p>
                  <label>cardnumber:  </label><br/>
                  <input type="text" class="text small" name="cardnumber" value="<%= acc.getCardnumber() %>"> 
                  
              </p>
              <p>
                  <label>cardexpiry:      </label><br/>
                  <input type="text" class="text small" name="cardexpiry" value="<%= acc.getCardexpiry() %>"> 
                  
              </p>
              
              <p>
                  <label>email: </label><br/>
                  <input type="text" class="text small" name="email" value="<%= acc.getEmail() %>"> 
                  
              </p>
          
                <p>
          	<input type="submit" class="submit" value="Submit">
       		</p>
                
           </form>

        </div>
</div>